﻿#include<stdio.h>
#include<easyx.h>
#include<graphics.h>
#include<time.h>
#include<conio.h>

void printText() {
	cleardevice();
	int x = rand() % 300;
	int y = rand() % 200;
	outtextxy(x, y, "你好，EasyX");
}

int main() {
	initgraph(300, 200);
	setbkcolor(RGB(20, 50, 128)); cleardevice();

	while (!_kbhit())
	{
		printText();
		Sleep(1000);
	}

	closegraph();
}
